(function($){
$.fn.xOpenChat = function(options){
	
	var settings = $.extend({
		someOption: 'someValue'
	}, options||{});
	
	var element = $(this);
	
	alert(settings.someOption);
	alert($(this).attr("id"));
	
	return element;

};	
})(jQuery);